package cn.hy.tiny.demo.core;

/**
 * @Author huang.xy
 * @Description 实现
 */
public class SqlSessionFactory {

    private final Configuration configuration;

    public SqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    public SqlSession openSqlSession() {
        return new DefaultSqlSession(configuration);
    }
}
